package com.llh.uua.model

import org.ktorm.entity.Entity
import org.ktorm.schema.Table
import org.ktorm.schema.int


/**
 *
 * <p>Created At 2021/3/17 21:44
 * @author llh
 */
interface UserRole : Entity<UserRole> {
    companion object : Entity.Factory<UserRole>()

    val id: Int

    var userId: Int
    var roleId: Int

}

object UserRoles : Table<UserRole>("sys_user_role") {
    val id = int("id").primaryKey().bindTo { it.id }
    val userId = int("user_id").bindTo { it.userId }
    val roleId = int("role_id").bindTo { it.roleId }
}